package com.sun;

import com.sun.config.SpringConfig;
import com.sun.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        ApplicationContext act = new AnnotationConfigApplicationContext(SpringConfig.class);
        UserService userService = act.getBean(UserService.class);
        userService.getUsers();
        userService.upUsers();
    }
}
